import instance from '../utils/request'
/*登录之后获取用户信息*/
export function getUserInfo() {
    return instance({
      url: '/hospital/user/getUserInfo',
      method: 'GET'
    })
  }
  
  /*登录*/
  export function doLogin(loginForm) {
    return instance({
      url: '/login',
      method: 'POST',
      params:{
        userName: loginForm.userName,
        password: loginForm.password
      }
    })
  }
  
  /*注销*/
  export function doLogout() {
    return instance({
      url: '/logout',
      method: 'POST'
    })
  }
  